package com.chapter6.lianxi.demo1;

public abstract class Population {
    //生命值
    private int HP;

    //攻击力
    private int AP;

    //占用人口个数
    private int num;


    public Population(int HP, int AP, int num) {
        this.HP = HP;
        this.AP = AP;
        this.num = num;
    }

    //进攻（抽象方法）
    public abstract void attack();

}
